<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>采购审批管理</title>
	<jsp:include page="../inc.jsp"></jsp:include>
	<script src="<%=request.getContextPath() %>/resources/js/purchase/applicationApprove.js"
			type="text/javascript"></script>
	<script type="text/javascript">
		$(function () {
			parent.$.messager.progress('close');
		});
		$(function () {
			initSelectAjax("/global/status.html", $('#status'));
			initAjaxDataGrid("/purchase/selectPageApplicationCheckList.html", $('#dataGrid'), getApplicationDataGridOptions());
			$('#editFunction').click(function(){
				viewApproveFunction($('#dataGrid'));
			});
			$('#status').val('2');
		});


	</script>
</head>
<body>
<div class="easyui-layout" data-options="fit : true,border : false">
	<div data-options="region:'north',title:'查询条件',border:false" style="height: 140px; overflow: hidden;">
		<form id="searchForm">
			<div class="mTop20 mLeft60">
				<div class="mTop10 line-handsome">
					<div class="fLeft label-handsome ">
						<label>供应商名称:</label>
						<input id="memberName" name="providerName" class="easyui-input"/>
					</div>
					<div class="fLeft label-handsome ">
						<label>签约人:</label>
						<input id="userName" name="userName" class="easyui-input"/>
					</div>
					<div class="fLeft label-handsome ">
						<label>申请状态:</label>
						<select id="status" name="status" style="width:150px">
						</select>
					</div>
				</div>
				<div class="mTop10 line-handsome">
					<div class="fLeft label-handsome ">
						<label>申请日期:</label>
						<input id="appstarttime" name="startDate" class="easyui-datebox" style="width:90px"/>
						&nbsp;-&nbsp;
						<input id="appendtime" name="endDate" class="easyui-datebox" style="width:90px"/>
					</div>
					<div class="fLeft label-handsome ">
						<label>采购申请号:</label>
						<input id="applicationNumber" name="applicationNumber" class="easyui-input"/>
					</div>
				</div>
				<div class="mTop10 line-handsome">
					<div class="fRight">
						<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-search'"
						   onclick="searchFun('/purchase/selectPageApplicationList.html', $('#dataGrid'),getApplicationDataGridOptions);">搜索</a>
						<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'brick_delete'"
						   onclick="cleanFun();">清空搜索条件</a>
					</div>
				</div>
			</div>
		</form>
	</div>
	<div data-options="region:'center',title:'采购申请列表',border:false">
		<table id="dataGrid"></table>
	</div>
</div>
<div id="toolbar" style="display: none;">
	<%--<c:if test="${fn:contains(sessionInfo.resourceList, '/userController/editPage')}">--%>
	<a id="editFunction" href="javascript:void(0);" class="easyui-linkbutton"
	   data-options="plain:true,iconCls:'style_edit'">审批</a>
	<%--</c:if>--%>
</div>
</body>
</html>